package cc.idoone.jasperreport.test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DataMapList {

	public List getDataMapList() {
		ArrayList<Map<String, String>> dataBeanList = new ArrayList<Map<String, String>>();

		dataBeanList.add(produce("Manisha", "India"));
		dataBeanList.add(produce("Dennis Ritchie", "USA"));
		dataBeanList.add(produce("V.Anand", "India"));
		dataBeanList.add(produce("Shrinath", "CaliforniaLongggggggggggggggggggggggggggx xyz"));
		dataBeanList.add(produce("Tanmay", ""));
		dataBeanList.add(produce("Google", null));
		return dataBeanList;
	}

	/**
	 * This method returns a DataBean object, with name and country set in it.
	 */
	private Map<String, String> produce(String name, String country) {
		Map<String, String> dataBean = new HashMap<String, String>();
		dataBean.put("name", name);
		dataBean.put("country", country);
		return dataBean;
	}
}